home *** CD-ROM | disk | FTP | other *** search
- #!/bin/sh
- #set -x
- clear
- PATH=$PATH:/usr/sbin:/usr/ucb ; export PATH
-
- # Function to inform users of postscript location #
- access_docs()
- {
- cat << END
- This distribution includes postscript documentation which can be printed or
- copied directly from the CD. Please change directory to the following path
- to retrieve the post script files:
-
- $CDROM/SAPPHIRE/postscript_docs_1.1
-
- where CDROM is the mount point for your CD.
-
- Installation.ps --> Sapphire/Web Installation Guide V1.1 for Unix
- GettingStarted.ps --> Getting Started with Sapphire/Web V1.1 for Unix
- Reference --> Sapphire/Web Reference Manual V1.1 for Unix
-
- END
- press_return
- clear
- }
- ########### Get The Architecture and tar product #######################
-
- ARCH=`uname -sr`
-
- case $ARCH in
-
- "SunOS 4.1."* | "SunOS 5."* | HP-UX*)
- ECHON="echo -n"
- ;;
-
- AIX* | IRIX* | OSF*)
- ECHON="echo"
- ;;
-
- esac
-
- # Press return to continue...
- press_return()
- {
- $ECHON "Press Return to continue..."
- read junk
- }
-
- arch_menu()
- {
- clear
- echo ""
- echo ""
- echo "1) SUN OS 4.1.X"
- echo "2) SUN SOLARIS 5.X"
- echo "3) IRIX 5.X"
- echo "4) HP-UX 9000"
- echo "5) HP-UX 10000"
- echo "6) AIX 3.2.X"
- echo "7) AIX 4.1.X"
- echo "8) DEC ALPHA 3.2.X"
- echo "__________________"
- $ECHON "Enter the number for your Architecture: "
- read ans
- case $ans in
-
- 1)
- ARCH="SunOS 4.1.X"
- ;;
-
- 2)
- ARCH="SunOS 5.X"
- ;;
-
- 3)
- ARCH="IRIX 5.3"
- ;;
-
- 4)
- ARCH="HP-UX A.09.0"
- ;;
-
- 5)
- ARCH="HP-UX B.10.01"
- ;;
-
- 6)
- ARCH="AIX 1"
- ;;
-
- 7)
- ARCH="AIX 2"
- ;;
-
- 8)
- ARCH="OSF1 V3.2"
- ;;
-
- esac
- }
-
- check_ans()
- {
- while [ ${ans:=0} != n -a $ans != y ]
- do
- $ECHON "Please enter y or n: "
- read ans
- done
- }
-
- arch_ans()
- {
- if [ $ans = "n" ] || [ $ans = "no" ]
- then
- arch_menu
- fi
- }
-
- cat << END
- *****************************************************************************
- *** Bluestone Saphire/Web CD - Volume 1 - Installation Program
- *****************************************************************************
-
- Welcome to Bluestone Sapphire/Web Volume 1. Thank you for choosing Bluestone
- as your software vendor. If you need help with the installation of this
- product, use your Serial Number to surf the acclaimed Explorer/Web:
-
- http://www.bluestone.com/support
-
- or send e-mail to:
-
- support@bluestone.com
-
- Otherwise, you can contact us during regular business hours:
-
- Product Sales Technical Support
-
- Phone: (609) 727-4600 (609) 778-7900
- Fax: (609) 778-8125 (609) 234-2877
-
- *****************************************************************************
-
- END
- press_return
- clear
- echo "**********************************************************************************"
- echo "*** Select CD-ROM Mount Point"
- echo "***********************************************************************************"
- echo "This install script assumes that your CD-ROM drive is currently mounted on: "
- echo ""
- echo " /cdrom"
- echo ""
- $ECHON "Is this correct: [y/n]: "
- read ans
-
- if [ "$ans" = "y" ] || [ "$ans" = "Y" ] || [ "$ans" = "yes" ] || \
- [ "$ans" = "" ]
- then CDDIR=/cdrom
-
- else
- echo ""
- echo ""
- $ECHON "Please enter the pathname for your CD-ROM root directory: "
- read CDDIR
-
- fi
- echo ""
- echo ""
-
- case $ARCH in
-
- "SunOS 4.1."*)
- echo "You are running on SUN OS 4.1.X Architecture. Is this the"
- $ECHON "platform on which you want to run Sapphire 1.1? [y/n]: "
- read ans
- check_ans
- arch_ans
- ;;
-
- "SunOS 5."*)
- echo "You are running on SUN SOLARIS 5.X Architecture. Is this the"
- $ECHON "platform on which you want to run Sapphire 1.1? [y/n]: "
- read ans
- check_ans
- arch_ans
- ;;
-
- "HP-UX A.09.0"*)
- echo "You are running on HP-UX 9000 Architecture. Is this the"
- $ECHON "platform on which you want to run Sapphire 1.1? [y/n]: "
- read ans
- check_ans
- arch_ans
- ;;
-
- "IRIX 5.3")
- echo "You are running on IRIX 5.X Architecture. Is this the"
- $ECHON "platform on which you want to run Sapphire 1.1? y/n]: "
- read ans
- check_ans
- arch_ans
- ;;
-
- "HP-UX B.10.01")
- echo "You are running on HP-UX 10000 Architecture. Is this the"
- $ECHON "platform on which you want to run Sapphire 1.1? [y/n]: "
- read ans
- check_ans
- arch_ans
- ;;
-
- "OSF1 V3.2")
- echo "You are running on DEC ALPHA 3.X Architecture. Is this the"
- $ECHON "platform on which you want to run Sapphire 1.1? [y/n]: "
- read ans
- check_ans
- arch_ans
- ;;
-
- "AIX 1")
- echo "You are running on AIX 4.1.X Architecture. Is this the"
- $ECHON "platform on which you want to run Sapphire 1.1? [y/n]: "
- read ans
- check_ans
- arch_ans
- ;;
-
- "AIX 2")
- echo "You are running on AIX 3.2.X Architecture. Is this the"
- $ECHON "platform on which you want to run Sapphire 1.1? [y/n]: "
- read ans
- check_ans
- arch_ans
- ;;
- esac
-
- echo ""
- echo ""
- echo "Please enter the destination directory for Sapphire 1.1: "
- read PRODDIR
-
- while [ 1 ]
- do
- if [ -d $PRODDIR ]
- then
- echo ""
- echo ""
- echo "You specified that you want to install Sapphire 1.1"
- echo "into $PRODDIR"
- echo ""
- $ECHON "Is this correct? [y]: "
- read ans
-
- case $ans in
- y|Y|yes|YES|"")
- if [ -w $PRODDIR ]
- then
- break
- else
- echo ""
- echo ""
- echo "You do not have write privileges to $PRODDIR. You need to "
- echo "either change the write privileges on $PRODDIR or run this"
- echo "installation as root."
- echo ""
- echo ""
- fi
- continue
- ;;
- n|N|no|NO)
- $ECHON "Please re-enter the destination product directory: "
- read PRODDIR
- ;;
- esac
-
- else
- echo ""
- echo ""
- echo "The directory $PRODDIR does not exist."
- echo ""
- echo "Would you like to create the directory"
- $ECHON "$PRODDIR now? [y/n]: "
- read ans
-
- if [ "$ans" = "y" ] || [ "$ans" = "" ] || [ "$ans" = "yes" ] || \
- [ "$ans" = "YES" ]
- then
- mkdir -p $PRODDIR
- continue
- else # Answer is no, then
- echo ""
- echo "Please re-enter the destination directory for Sapphire 1.1: "
- read PRODDIR
- continue
- fi
-
- fi # matches if [ -d "$PRODDIR" ]
- done
-
- cd $PRODDIR
-
- echo "************** Now tarring Sapphrie/Web Files *************************"
-
- case $ARCH in
-
- "SunOS 4.1."*)
- tar xvf $CDDIR/SAPPHIRE/sapphire1.1/sunsparcOs413.tar
- ;;
-
- "SunOS 5."*)
- tar xvf $CDDIR/SAPPHIRE/sapphire1.1/sunsparcSol230.tar
- ;;
-
- "HP-UX A.09.0"*)
- tar xvf $CDDIR/SAPPHIRE/sapphire1.1/hp9-700Hpux900.tar
- ;;
-
- "IRIX 5.3")
- tar xvf $CDDIR/SAPPHIRE/sapphire1.1/sgiIrix530.tar
- ;;
-
- "HP-UX B.10.01")
- tar xvf /$CDDIR/SAPPHIRE/sapphire1.1/hp9-700Hpux100.tar
- ;;
-
- "OSF1 V3.2")
- tar xvf $CDDIR/SAPPHIRE/sapphire1.1/decalphaOsf320.tar
- ;;
-
- "AIX 1")
- tar xvf $CDDIR/SAPPHIRE/sapphire1.1/ibmrs6000Aix413.tar
- ;;
-
- "AIX 2")
- tar xvf $CDDIR/SAPPHIRE/sapphire1.1/ibmrs6000Aix325.tar
- ;;
-
- esac
- clear
- $ECHON "Would you like to run the Sapphire 1.1 Install Script now? [y/n]: "
- read ans
-
- case $ans in
-
- y|Y|yes|YES)
- SAPPHIRE=$PRODDIR ; export SAPPHIRE
- $PRODDIR/Install
- ;;
-
- n|N|no|NO)
- ;;
-
- esac
-
- clear
- access_docs
-
- cat << END
- *****************************************************************************
- *** Exiting CD-ROM Installation Program
- *****************************************************************************
-
- If you need help, use your Serial Number to surf the acclaimed Explorer/Web:
-
- http://www.bluestone.com/support
-
- or send e-mail to:
-
- support@bluestone.com
-
- Otherwise, you can contact us during regular business hours:
-
- Product Sales Technical Support
-
- Phone: (609) 727-4600 (609) 778-7900
- Fax: (609) 778-8125 (609) 234-2877
-
- *****************************************************************************
-
- END
-
-
-